package com.fcl.oschina.ui.activity;

import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.View;

import com.fcl.mylibrary.reflect.ViewInject;
import com.fcl.oschina.Constant;
import com.fcl.oschina.R;
import com.fcl.oschina.adapter.CommentAdapter;
import com.fcl.oschina.entity.CommentEntity;
import com.fcl.oschina.model.CommentModel;
import com.fcl.oschina.ui.fragment.CommentFragment;
import com.fcl.oschina.ui.fragment.CommentView;
import com.fcl.oschina.ui.fragment.NoMoreView;

import java.util.ArrayList;
import java.util.List;

public class CommentListActivity extends BaseBackActivity {

    private int mId, mType;
    private CommentFragment mCommentFragment;

    @Override
    protected void init() {
        super.init();
        mToolbar.setTitle(R.string.comment_list);

        Intent intent = getIntent();
        mId = intent.getIntExtra("id", 0);
        mType = intent.getIntExtra("type", 0);

        mCommentFragment = new CommentFragment();
        Bundle bundle = new Bundle();
        bundle.putInt("id", mId);
        bundle.putInt("type", mType);
        mCommentFragment.setArguments(bundle);
        replace(R.id.content_layout, mCommentFragment);
    }

    @Override
    protected int getLayoutId() {
        return R.layout.activity_comment_list;
    }

}
